package com.diko.config.exceptionhandler;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author Emma Li
 * @date 2020/9/14 - 12:16
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class myException extends RuntimeException {
    @ApiModelProperty(value = "状态码")
    private Integer code;

    private String msg;

    /*@Override
    public String toString() {
        return "EmmaException{" +
                "message=" + this.getMessage() +
                ", code=" + code +
                '}';
    }*/
}
